<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<html>
<head>
    <script type="text/javascript">
        var outVar = '广场';
        $(function () {
            outVar = '小区'
            alert(outVar)
        })
        $(function () {
            alert(outVar)
        })
    </script>
</head>
<body>

</body>
</html>
